var billObj;

//订单管理页面上点击删除按钮弹出删除框(billlist.jsp)

function openYesOrNoDLG(){
	$('.zhezhao').css('display', 'block');
	$('#removeBi').fadeIn();
}

function cancleBtn(){
	$('.zhezhao').css('display', 'none');
	$('#removeBi').fadeOut();
}
function changeDLGContent(contentStr){
	var p = $(".removeMain").find("p");
	p.html(contentStr);
}

$(function(){
	$(".viewBill").on("click",function(){
		//将被绑定的元素（a）转换成jquery对象，可以使用jquery方法
		var obj = $(this);
		window.location.href=path+"/bill/viewBill?rec_id="+ obj.attr("rec_id");
	});
	
	$(".modifyBill").on("click",function(){
		var obj = $(this);
		window.location.href=path+"/bill/modifyBill?rec_id="+ obj.attr("rec_id");
	});
	$('#no').click(function () {
		cancleBtn();
	});
	
	$('#yes').click(function () {
		/*deleteBill(billObj);*/
		window.location.href=path+"/bill/deleteBill?rec_id="+ billObj.attr("rec_id");
	});

	$(".deleteBill").on("click",function(){
		billObj = $(this);
		changeDLGContent("你确定要删除应聘人员【"+billObj.attr("billcc")+"】的信息吗？");
		openYesOrNoDLG();
	});

});